<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,  initial-scale=1.0, user-scalable=0, minimum-scale=1.0,  maximum-scale=1.0" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <title>发布话题/分享</title>
    <link rel="stylesheet" href="__PUBLIC__/css/style.css" media="screen" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/css/public.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/font-awesome.min.css"/>
    <link rel='stylesheet' href='__PUBLIC__/css/bootstrap.css' type='text/css' media='all' />
    <script type='text/javascript' src='__PUBLIC__/js/jquery-2.1.1.min.js'></script>
    <script type='text/javascript' src='__PUBLIC__/js/bootstrap.js'></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/plugins/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/plugins/ueditor/ueditor.all.min.js"> </script>
</head>
<body>
<script type="text/javascript">
var ue = UE.getEditor('editor');
</script>
    <div class="container">
            <include file='Common:header'/>
        <div class="cgx-txt">
        <h1><i class="fa fa-pencil"></i>发布话题/分享</h1>
        <div class="xrz-box">
    <if condition = 'ACTION_NAME eq "edit"'>
        <form action="{:U('/Home/Share/editpost')}" method="post">
            <foreach name='edit' item='v'>
                <div class="xrz-input-box">
                    <label id="xrz-tit">标&nbsp;&nbsp;题:</label>
                    <input type="text" name="title" value="{$v.title}" required/>
                </div>
                <div class="blog-text txt-srk">
                    <label id="xrz-tit">正文:</label>
                    <script id="editor" name="content" type="text/plain" style="width:100%;height:500px;">{$v.content}</script>
                </div>
                <input type="hidden" name="id" value="{$v.id}"/>
            </foreach>
    <else/>
        <form action="{:U('/Home/Share/sharepost')}" method="post">
                <div class="xrz-input-box">
                    <label id="xrz-tit">标&nbsp;&nbsp;题:</label>
                    <input type="text" name="title" required/>
                </div>
                <div class="blog-text txt-srk">
                    <label id="xrz-tit">正文:</label>
                    <script id="editor" name="content" type="text/plain" style="width:100%;height:500px;"></script>
                </div>
    </if>

                <div class="btn-div">
                    <input type="submit" class="btn-box" id="submit-button" value="发 布"/>
                </div>
        </div>
        </form>
        </div>
    </div>
    <script src="__PUBLIC__/js/index.js"></script>
</body>
</html>